package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter@Setter
@NoArgsConstructor
@AllArgsConstructor
public class IssuePolicy {
    private Long id;

    private Customer customer; //投保人

    private Long totalAmount;  //保费金额

    private Integer paymentWay; //缴费方式

    private Integer state;  //缴费状态

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date beginDate;  //起保日期

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endDate;  //止保日期

    private Employee inputUser;  //录入人

    private SafetyMechanism safetymechanism; //保险公司

    private Policy policy;  //核保单号

    private String serialNumber;  //保单号

    private List<Product> products = new ArrayList<>();

}